home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr27 / gs26.zip / NEWS < prev    next >
Text File  |  1993-05-09  |  72KB  |  1,877 lines

  1.    Copyright (C) 1989, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  2.    Distributed by Free Software Foundation, Inc.
  3.  
  4. This file is part of Ghostscript.
  5.  
  6. Ghostscript is distributed in the hope that it will be useful, but
  7. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. to anyone for the consequences of using it or for whether it serves any
  9. particular purpose or works at all, unless he says so in writing.  Refer
  10. to the Ghostscript General Public License for full details.
  11.  
  12. Everyone is granted permission to copy, modify and redistribute
  13. Ghostscript, but only under the conditions described in the Ghostscript
  14. General Public License.  A copy of this license is supposed to have been
  15. given to you along with Ghostscript so you can know your rights and
  16. responsibilities.  It should be in a file named COPYING.  Among other
  17. things, the copyright notice and this notice must be preserved on all
  18. copies.
  19.  
  20. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  21.  
  22. This file, NEWS, describes the changes in the most recent releases of
  23. Ghostscript.  Changes in older releases are described in history.doc.
  24.  
  25. For an overview of Ghostscript and a list of the documentation files, see
  26. README.
  27.  
  28. Version 2.6.0 (5/9/93)
  29. =============
  30.  
  31. The main new feature in this release is the ability to use platform
  32. fonts.  It also adds many more Level 2 PostScript facilities.
  33.  
  34. Documentation
  35. -------------
  36.  
  37. Corrects some errors in the documentation of the makeimagedevice operator.
  38.  
  39. Adds operand and result types to the comments at the beginning of all the
  40. operators.
  41.  
  42. Adds new sections on installation in use.doc.
  43.  
  44. Reinstates history.doc as a repository for old and no longer interesting
  45. history information.
  46.  
  47. Adds a new file, devices.doc, with documentation for specific devices.
  48.  
  49. Points out that font2c must be run with a Fontmap that includes the fonts
  50. being converted, and that its arguments must be quoted with "" on VMS
  51. systems.
  52.  
  53. Notes that the font name in the Fontmap must be the same as the FontName
  54. in the font.
  55.  
  56. Adds a list of the Level 2 facilities not provided by Ghostscript.
  57.  
  58. Identifies bug-ghostscript@prep.ai.mit.edu as an alias for the
  59. gnu.ghostscript.bug newsgroup.
  60.  
  61. Points out explicitly that -sOutputFile=- sends output to stdout, and
  62. requires using the -q switch.
  63.  
  64. Documents the use of tar_cat to construct the Unix makefiles.
  65.  
  66. Adds a new file, xfonts.doc, that describes the external font interface.
  67.  
  68. Documents the fact that drivers must use gs_malloc and gs_free rather than
  69. malloc and free.
  70.  
  71. Documents the *.sh (shell script) files.
  72.  
  73. Adds brief documentation on some additional development tool .ps files.
  74.  
  75. Documents the TEMP and GS_OPTIONS environment variable.
  76.  
  77. Points out the need to run Windows in 386 Enhanced mode on machines
  78. that have less than 6 Mb of RAM.
  79.  
  80. Consolidates documentation on compiler switches in make.doc (some of
  81. it had been in the unix*.mak files).
  82.  
  83. Procedures
  84. ----------
  85.  
  86. Fixes bugs:
  87.     - \'s in arguments following -- were doubled.
  88.  
  89. Includes the full set of filters automatically if the level2 feature
  90. is selected.
  91.  
  92. Extends DEVICE_DEVS... up to DEVS9.  Adds DEVICE_DEVS1 as well.
  93.  
  94. Renames turboc.mak and tbcplus.mak as tc.mak and bc.mak.
  95.  
  96. Makes @-files use the library path (GS_LIB, -I).
  97.  
  98. Changed the Unix install script to use install <file> <destfile>
  99. rather than install <file> <directory>.
  100.  
  101. Adds a GS_OPTIONS environment variable that acts like an implicit @-file
  102. at the beginning of the command line (i.e., may contain switches and
  103. initialization files).
  104.  
  105. Renames sym__enc.ps as gs_sym_e.ps.
  106.  
  107. Adds a user-contributed shell script for using Ghostscript with an
  108. H-P printer spooler.
  109.  
  110. Adds level1.ps to the set of installed utility files.
  111.  
  112. Extends the TEMP environment variable (the directory for scratch
  113. files) to work on Unix as well as MS-DOS.
  114.  
  115. Changes the MS Windows makefile to generate gswin.exe rather than
  116. gs.exe, and the Watcom makefile to generate gs386.exe.
  117.  
  118. Moves the "product" string from gs_init.ps to iinit.c.
  119.  
  120. Adds a GS macro to the makefiles, to allow choosing the name of the
  121. executable.
  122.  
  123. Utilities
  124. ---------
  125.  
  126. Fixes bugs:
  127. *    - font2c did the wrong thing (still) for fonts that didn't
  128. use StandardEncoding, ISOLatin1Encoding, or SymbolEncoding.
  129. *    - impath.ps had a fatal bug (wrong operand order for
  130. charstack_write) that caused bdftops to fail.
  131.     - gslp didn't wrap or truncate lines.
  132.     - gslp didn't handle tabs in a second or subsequent column
  133. properly.
  134.     - The definition of ashow in gs_2asc.ps incorrectly undid the
  135. increment following the last character.
  136.     - The definition of awidthshow in gs_2asc.ps failed to pop
  137. two entries from the stack, and also tested the character against the
  138. wrong value.
  139.  
  140. Adds a shell script (sysvlp.sh) that interfaces Ghostscript with the
  141. System V 3.2 lp interface.
  142.  
  143. Adds ps2ascii and ps2epsi script/batch files.
  144.  
  145. Adds a new utility, mergeini.ps, for concatenating all the
  146. Ghostscript initialization files into a single file, optionally
  147. removing comments and blank lines.
  148.  
  149. Adds new switches to gslp:
  150.     -q: suppress all printed output.
  151.     --detect: check whether the file begins with %!, and if so,
  152.         interpret it directly as a PostScript file.
  153.     --first-page <page#>: replaces the former -P switch.
  154.     --last-page <page#>: replaces the former -Q switch.
  155.     --(heading|footing)-(left|center|right) <string>: define
  156.         headers/footers.  # inserts the page number.
  157.     --margin-(top|bottom|left|right) <inches>: define margins.
  158.     --spacing <n>: for double, triple, etc. spacing.
  159. Also makes gslp ignore all the enscript flags it doesn't implement.
  160.  
  161. Adds an option to wrfont.ps to do encryption at read-in time.  (This
  162. allows much better compression of the standard Ghostscript fonts.)
  163. Changes bdftops to use this option.
  164.  
  165. Changes gslp to accept wild cards in file names.
  166.  
  167. Replaces landscap.ps with a new one contributed by a user.
  168.  
  169. Changes the compression scheme used in ps2image to a much more
  170. effective one.  Writing images is much slower than with the previous
  171. scheme, but reading is not.
  172.  
  173. Platforms
  174. ---------
  175.  
  176. Fixes bugs:
  177.     - SCFDTAB and SCFTAB were omitted from the VMS module lists.
  178.     - Function prototypes were not being used with the Watcom
  179. compiler.
  180.     - On MS-DOS platforms, if the value of the TEMP variable had
  181. a trailing : or \, Ghostscript appended a \ anyway.
  182.     - Under Windows, changing the size or resolution of the image
  183. closed and reopened the window.
  184.     - Ghostscript would not build correctly with the Watcom compiler
  185. if DOS4G=quiet was not set, because the DOS4GW copyright message was sent
  186. to stdout.
  187. *    - Finally gets Ghostscript to run properly on the RS/6000, by
  188. adding a compiler bug workaround to arc_add and arc_either.
  189. *    - Finally gets Ghostscript to compile properly on Sun SPARC
  190. systems, by adding a compiler bug workaround in scan_number.
  191.  
  192. Changes the default MS-DOS configuration from 8086/8088 to 80286.
  193.  
  194. Adds all the SuperVGA drivers to the BC++ and Watcom executables
  195. (except for the VESA driver in the Watcom executable).
  196.  
  197. Adds a makefile (msc.mak) for the Microsoft C/C++ 7.0 platform.  This
  198. is currently a MS-DOS, not a MS Windows, platform.
  199.  
  200. Changes gp_enumerate_files_init so it takes a gs_memory_procs *, not
  201. separate proc_alloc_t and proc_free_t arguments; also, it must
  202. enumerate precisely the requested set of files, not a superset.  THIS
  203. IS A NON-BACKWARD-COMPATIBLE-CHANGE.  It affects all gp_*.c files.
  204.  
  205. Adds the P*M drivers and bit.dev to the standard configuration on
  206. Unix platforms.
  207.  
  208. Changes the Watcom makefile so it uses the WATCOM environment variable (by
  209. default) as the base directory for the Watcom executables.
  210.  
  211. Adds the MS Windows COMMDLG.DLL and SHELL.DLL files to the set of
  212. files incorporated in GSEXE.ZIP, since the new MS Windows code uses
  213. them, and they aren't provided with Windows 3.0.
  214.  
  215. Makes major revisions to the MS Windows platform and driver code, to
  216. support the gsview front end, and also to remove the dependence on the
  217. Borland EasyWin library.  NOTE: Compiling the MS Windows code now requires
  218. Borland C++ 3.1 (not 3.0).
  219.  
  220. Changes time_.h so that Ghostscript will compile and run on A/UX.
  221.  
  222. Changes the MS-DOS implementation of file enumeration so it always
  223. treats \s in the file name as literal characters, not escapes, unless
  224. there are two \\s in a row.  This does the most sensible thing given
  225. the DOS file naming conventions.
  226.  
  227. Adds a %pipe% file device under Unix.
  228.  
  229. Adds a makefile for Watcom C under MS Windows.  This is very preliminary;
  230. in particular, NO display output is supported.
  231.  
  232. Fonts
  233. -----
  234.  
  235. Fixes bugs:
  236.     - fonts.mak referred to ncri and puti rather than ncrri and
  237. putri.
  238.     - cyr and cyri had the wrong protection.
  239.     - The Hershey fonts left the font on the stack when they were
  240. loaded.
  241. *    - The FontName of an aliased font was the original FontName
  242. from the file, not the alias.
  243. *    - Fontmap.BTS had incorrect entries for AvantGarde-Demi and
  244. AvantGarde-DemiOblique.
  245.     - Ghostscript pushed userdict, rather than an empty writable
  246. dictionary, onto the stack when loading a font, leading to name clashes.
  247.  
  248. Adds a new cfonts.mak with a full set of rules for compiling all the
  249. standard Ghostscript fonts (except the Hershey fonts) into C.
  250.  
  251. Adds UniqueIDs to the Hershey fonts, and removes the UniqueIDs from
  252. the Hershey entries in the Fontmap.
  253.  
  254. Adds a new Fontmap for VAX/VMS with DECWindows/Motif.
  255.  
  256. Changes MakeHersheyFont so it takes the encoding as an additional
  257. parameter, and changes the Hershey-Symbol font to use SymbolEncoding.
  258.  
  259. Drivers
  260. -------
  261.  
  262. Fixes bugs:
  263.     - The !@*&^%#@$ PCL drivers *still* didn't do the right thing
  264. about vertical spacing: the <ESC>*p+<n>Y command works on all PCL 3,
  265. 4, and 5 printers *except* the LaserJet IIp.
  266.     - The cdj driver used recursive macros (height, t_margin,
  267. b_margin) that not all compilers handled correctly.
  268.     - The djtc driver used some assignments including =*, which
  269. some compilers dislike.
  270.     - The S3 driver wouldn't compile correctly with the Watcom
  271. compiler.
  272.     - The makefile entry for the S3 driver was wrong.
  273.     - The SuperVGA drivers returned an error, rather than using
  274. the highest available resolution, if a too-high resolution was
  275. requested.
  276.     - The GIF driver produced an incorrect header for images
  277. wider or taller than 32K pixels.
  278.     - The GIF driver wasn't able to handle multi-page documents
  279. correctly.
  280.     - The margins on the DeskJet were still not correct.
  281.     - Some ANSI C compilers rejected a complex expression in
  282. gdevpccm.c.
  283.     - Printer drivers didn't recover cleanly from problems in
  284. opening the scratch files.
  285.     - The BJ-10e driver used the same name `out' for a label and
  286. a variable.
  287.     - The SCO ODT compiler couldn't handle sizeof(ppdev->fname).
  288.  
  289. Adds new drivers:
  290.     - Drivers to produce MS Windows .BMP format output.
  291.     - A new ATI Wonder display driver (800x600, 16 colors) and a
  292. 1024x768 mode for the existing driver.
  293.  
  294. Adds new user-contributed drivers:
  295.     - A driver for the Tektronix 4693d color printer.  This carries a
  296. university copyright.
  297.     - A driver for the SPARCprinter.
  298.     - A driver for the Canon BJ200 printer.
  299.     - A driver for the IBM ProPrinter.
  300.     - A driver for the DEC LJ250 printer, which has a
  301. PaintJet-compatible mode.
  302.     - A replacement driver for the Sony NWP533.
  303.     - A driver that writes TIFF/F (Group 3 fax) files.  This carries
  304. an external copyright.
  305.     - A driver for the C.Itoh M8510 printer.
  306.     - A driver for the Okidata MicroLine 182 9-pin dot-matrix printer.
  307.     - A Hercules Graphics driver.
  308.     - A driver for printers under MS Windows.
  309.     - A driver for direct frame buffer addressing under SCO Unix
  310. and Xenix and AT&T SVR4.
  311.  
  312. Changes the get_bits driver procedure so it always reads a single
  313. scan line, and optionally does not copy the data.  THIS IS A
  314. NON-BACKWARD-COMPATIBLE CHANGE.  However, this change does not affect
  315. any existing printer driver, since these all go through intermediate
  316. routines in gdevprn.c.
  317.  
  318. Changes gdevprn.h, and the relevant printer drivers, so that -DA4
  319. will change the default paper size for any printer driver.
  320.  
  321. Allows the use of NULL or 0 for default procedures in the driver
  322. procedure vector.
  323.  
  324. Adds an optional map_cmyk_color procedure to the driver procedure
  325. vector.
  326.  
  327. Changes the Epson driver so that the minimum amount of white space
  328. required to use a tab is an easily changed parameter.
  329.  
  330. Changes the BGI driver to use separate segments for the Borland
  331. device drivers, to reduce the risk of overflowing a segment.
  332.  
  333. Adds an optimization option (normally enabled) to the PGM and PPM drivers
  334. such that they revert to PBM or (for PPM) PGM if the page can be
  335. represented that way.
  336.  
  337. Adds a new (optional) driver procedure to get the procedure vector
  338. for external fonts.
  339.  
  340. Adds an argument to gp_open_printer to indicate whether the file should be
  341. opened in binary or text mode.  THIS IS A NON-BACKWARD-COMPATIBLE CHANGE.
  342. However, this change does not affect any existing printer driver, since
  343. these all go through intermediate routines in gdevprn.c.
  344.  
  345. Changes the LN03/LA50/LA75 driver so it uses a text record mode to open
  346. the output file under VMS (by adding an argument to gp_open_printer to
  347. indicate this.)
  348.  
  349. Allows (indeed, encourages) drivers to use far_data to declare the device
  350. structure, primarily to avoid overflowing the 64K data segment under MS
  351. Windows.  Changes the file output drivers and many of the printer drivers
  352. to declare their device structures as far_data.
  353.  
  354. Replaces the AT&T 3B1 driver with an updated version (from the same
  355. contributor).
  356.  
  357. Changes the Epson BJ driver and the SPARCprinter driver so they align
  358. the (0,0) point of the page with the physical corner of the paper
  359. rather than with the origin of the printable area.
  360.  
  361. Removes the EIZO MDB-10 driver, since it caused complications for the
  362. EGA and VGA drivers and is not a widely used device.
  363.  
  364. Interpreter
  365. -----------
  366.  
  367. Fixes bugs:
  368.     - The entry for the copydevice operator in the operator table
  369. was initialized incorrectly.
  370.     - printobject and writeobject didn't handle nested arrays.
  371.     - restore didn't properly close the current file (if
  372. appropriate), causing an invalidaccess error.
  373.     - buildfont required the presence of a valid, 4-element
  374. FontBBox.  (The Red Books say it's required, but Adobe interpreters
  375. don't require it; some DEC software generates a 3-element FontBBox.)
  376.     - resourceforall had several bugs; it didn't do even
  377. approximately the right thing.  There were quite a few other problems
  378. with the implementation of resources.
  379.     - setfont, makefont, and scalefont would accept a font with
  380. no FID entry.
  381. *    - Loading a .PFB font left the file open (until the next
  382. restore or quit).
  383.     - The default (null) font didn't include a PaintType entry,
  384. which some PostScript files expected.
  385. *    - The ASCIIHexDecode filter sometimes thought the underlying
  386. stream was at EOF even when there was (at most one buffer's worth of)
  387. data left.
  388.     - iscan.c included <ctype.h> before std.h, causing type name
  389. clashes on some systems.
  390. *    - save and restore didn't handle the pointers in the graphics
  391. state correctly; for example, the current font wasn't restored
  392. properly.
  393.     - Binary object sequences at the top interpreter level didn't
  394. get executed immediately.
  395.     - On high-resolution devices, the default transfer function
  396. converted almost-white grays to very light grays rather than white.
  397.     - The `string' operator was checking the string length
  398. against max_uint rather than max_ushort, which could cause invalid
  399. lengths to be accepted.
  400. *    - deviceinfo caused a stackunderflow error.
  401. *    - idiv could give incorrect results for quotients or
  402. remainders that didn't fit in 24 bits.
  403. *    - The ASCII85Encode filter padded trailing bytes with 1's
  404. rather than 0's.
  405. *    - The ASCII85Decode filter had a typo that produced incorrect
  406. results if there were exactly 2 trailing bytes.
  407.     - findlibfile didn't push a copy of the file name if it was
  408. the name of a special (%) file.
  409.     - setduplexmode was not defined in statusdict, causing
  410. /undefined errors from some poorly designed input files.
  411. *    - The CCITTFaxDecode filter had several bugs in 2-D decoding.
  412. *    - The ASCII85Decode filter didn't read ahead to detect EOD if
  413. it fell precisely on a buffer boundary.
  414.     - If a file mentioned on the command line redefined `start',
  415. Ghostscript would run the new definition rather than the built-in one
  416. after processing all the files on the command line.
  417.     - The SCO ODT compiler couldn't handle the conditionals in the
  418. ngetc (iscan.c) and sgetc* (stream.h) macros.
  419.     - makefont and scalefont didn't cache the PostScript dictionaries
  420. for scaled fonts.
  421.     - Changing the elements of the Encoding of a font dynamically
  422. didn't take effect if the character was already cached.
  423.     - makefont and scalefont didn't add the (undocumented) OrigFont
  424. and ScaleMatrix entries to the new font.
  425. *    - findfont insisted that the font name be a string or a name.
  426.     - filenameforall could cause an incorrect transfer of control
  427. if no files matched the pattern.
  428. *    - ISOLatin1Encoding had hyphen instead of minus at code 45.
  429.     - restore didn't reset saved_cbot and saved_ctop correctly;
  430. as a result, some freed blocks could get abandoned rather than put on
  431. the free list.
  432.     - Some numerical constants in zarith.c assumed that longs
  433. occupied 32 bits.
  434.  
  435. Implements additional Level 2 features:
  436.     - %device%file names (only the "os" device is provided).
  437.     - <~ ~> for ASCII-85 strings.
  438.     - Binary error messages.
  439.     - BuildGlyph.
  440.     - CCITTFaxDecode filter entries EndOfBlock, Rows, and
  441.     (undocumented) FirstBitLowOrder.
  442.     - {set/current}{color/colorspace/overprint/colorrendering/
  443.     blackgeneration/undercolorremoval}.  (See below under library
  444.     for limitations.)
  445.     - Decode for the dictionary form of image.
  446.     - File access modes a, r/w/a+.
  447.     - Font entries CDevProc, Metrics2, and WMode.
  448.     - Font operators cshow, findencoding, rootfont, and
  449.     setcachedevice2.
  450.     - glyphshow (emulated with PostScript code).
  451.     - languagelevel.
  452.     - realtime.
  453.     - setbbox.
  454.     - (Subset of) system and user parameters.
  455.     - xshow, yshow, and xyshow.
  456.     - XUIDs for fonts.
  457.  
  458. Moves the installation of systemdict and the initial allocation of
  459. globaldict (if relevant) and userdict from gs_init.ps to iinit.c.
  460.  
  461. Makes Level 2 features dynamically selectable through the
  462. .setlanguagelevel operator; disables all Level 2 features
  463. (specifically including automatic dictionary expansion) unless the
  464. level2 feature is included and active.
  465.  
  466. Adds the .knownget operator for speeding up system procedures.
  467.  
  468. Renames the type1addpath operator as .type1addpath; adds an optional
  469. left side bearing argument; changes it so it does not do the
  470. setcachedevice, fill, or stroke, but does do a moveto for the
  471. character width.  Changes Type1BuildChar appropriately.  (All this is
  472. needed to make WMode work.)
  473.  
  474. Removes the .setmetrics operator, which is no longer needed.
  475.  
  476. * Changes the meaning of the user_errors argument to gs_run_file and
  477. gs_run_string so that -1 means always return on an error, 0 means
  478. only return on an error not within a `stopped'.
  479.  
  480. Adds all the necessary checks and operators for local/global VM, but
  481. doesn't actually implement local/global mode.
  482.  
  483. Changes setcachedevice back so that it requires 4 numbers on the
  484. stack rather than a 4-element array.  (It was changed to be the other
  485. way in release 2.0, but that was because I didn't realize that fonts
  486. had to have an executable FontBBox, and some of the Ghostscript fonts
  487. didn't.)
  488.  
  489. Changes all the filter operators from .filterxxx to .filter_xxx, and
  490. removes the need to enumerate them in gs_init.ps.
  491.  
  492. Adds .oserrno and .oserrorstring operators for getting the last OS
  493. error (in the current context).
  494.  
  495. Changes gs_finit similarly to gp_exit.  Adds gs_exit_with_code that
  496. takes both an exit status and a Ghostscript error code.
  497.  
  498. Changes the name of name.h to iname.h.
  499.  
  500. Adds support for the `interrupt' error (but doesn't provide any standard
  501. way of generating one, other than through the gp_check_interrupts polling
  502. function).
  503.  
  504. Adds copyright to systemdict.
  505.  
  506. Changes the spot halftone screen to an elliptical screen supplied by
  507. Berthold K. P. Horn.
  508.  
  509. Adds a check that the first token in gs_init.ps is an integer.  In
  510. conjunction with other code in gs_init.ps, this should catch all attempts
  511. to run Ghostscript with a gs_init.ps that doesn't match the executable.
  512.  
  513. Changes all relevant occurrences of sizeof to size_of in order to
  514. work with the buggy SVR4.2 C compiler.
  515.  
  516. Changes gp_exit so it is passed both the Ghostscript error code and
  517. the exit status code as arguments.  This is backward-compatible for
  518. all but the pickiest compilers.
  519.  
  520. Adds a call on gp_check_interrupts() after fwrite calls in the stream
  521. machinery.  This prevents lengthy console output from locking out
  522. other programs.
  523.  
  524. Changes a couple of occurrences of op_def_ptr in iinit.c to work around a
  525. `const' bug in Sun's SC1.0 compiler.
  526.  
  527. Adds a special hack in the 'where' operator to work around a bug in Aldus
  528. Freehand 2.x.
  529.  
  530. Changes all empty argument lists from () to (void), which is the ANSI
  531. C syntax.
  532.  
  533. Adds a hack to ignore ^[ and ^D^[ tokens, to work around the prologue
  534. and epilogue emitted by the MS Windows LaserJet IV driver.
  535.  
  536. Defines the processcolors operator, which should not be needed, but
  537. is required because of bugs in Lotus 1-2-3 and Adobe PhotoShop.
  538.  
  539. Changes the allocator (ialloc) to fill all allocated and/or freed
  540. blocks with a marker if gs_alloc_debug is set, as gs_malloc and
  541. gs_free already do.
  542.  
  543. Library
  544. -------
  545.  
  546. Fixes bugs:
  547.     - 16-bit memory devices stored the bytes of each pixel in the
  548. wrong order.
  549.     - copy_mono did the wrong thing when copying 1 source chunk
  550. to 2 destination chunks with polarity inverted.  (This probably
  551. didn't affect any actual uses of Ghostscript.)
  552. *    - The compile-time check for ints being 2 or 4 bytes used the
  553. #error directive, which most compilers don't recognize.
  554.     - arc and arcn didn't do the right thing for degenerate
  555. (single-point) arcs, or for arcs drawn in the "wrong" direction that
  556. were multiples of 360 degrees.
  557.     - charpath did the wrong thing with Type 3 fonts.
  558.     - copyscanlines gave an error if the buffer was too large.
  559.     - The copy_mono procedure (used for text and halftones) for
  560. 2- and 4-bit-per-pixel memory and printer devices incorrectly
  561. incremented the destination pointer after every pixel, instead of
  562. only after every byte.
  563.     - The fill_rectangle procedure (used for graphics) for 2- and
  564. 4-bit-per-pixel memory and printer devices, if given any color other
  565. than all 0's or all 1's, multiplied the X coordinate and width by 2
  566. or 4, thereby filling the wrong area.
  567.     - The use of 'data' in both gs_type1_data and gs_font upset
  568. the VMS compiler.
  569.     - The `Flex' feature wasn't implemented for Type 1 fonts,
  570. which caused serious errors in rendering some fonts that use it.
  571. (Unfortunately, some Adobe fonts violate the specification, so we had
  572. to implement Flex to always use a curve.)
  573. *    - Stem width adjustment was too eager, producing very strange
  574. effects on small characters with tight curves (a curve point could
  575. get snapped to the other side of the open area).
  576.     - The allocator didn't align structures adequately on
  577. machines where sizeof(long) or sizeof(char *) was 8 bytes.
  578.     - The test for IEEE floating point gave an incorrect
  579. (negative) result on machines where sizeof(long) was 8 bytes.
  580.     - genarch.c assumed that the result of subtracting two
  581. pointers was an int, leading to a garbage arch.h file on systems
  582. where this was false.
  583. *    - The Type 1 font interpreter incorrectly reset the adjusted
  584. path position to be the same as the unadjusted path position whenever
  585. it returned control to the client (in particular, for callothersubr),
  586. leading to discontinuities and distortions in the character shapes.
  587. *    - Accented characters in Type 1 fonts often misplaced the
  588. accent to the left.
  589.     - gsmisc.c wouldn't compile on machines with 64-bit pointers,
  590. because _pad was 0, and ANSI compilers don't accept 0-length arrays.
  591.     - pathforall got confused if the client procedures modified
  592. the path.
  593.     - The command list file representation limited X and Y
  594. coordinates to 15 bits.
  595. *    - stroke could produce spikes or other garbage for mitered
  596. joins as a result of stroke adjustment.
  597.     - The params_size field of the null device was wrong, so
  598. scaling the null device produced unpredictable results.
  599.  
  600. Changes monobit memory devices to always store data big-endian.  This
  601. eliminates byte-swapping, at the cost of slightly slower rendering.
  602.  
  603. Removes the memswab* routines, since they are no longer needed.
  604.  
  605. Implements gs_cshow_[n_]init, which provides support for cshow, and
  606. gs_xyshow_[n_]init, which provides support for {x,y,xy}show.
  607.  
  608. Adds an optional left side bearing argument to gs_type1_interpret.
  609.  
  610. Changes gs_type1_interpret so it does not do a setcachedevice, fill,
  611. or stroke, but only appends the character outline to the path
  612. (including a moveto for the character width.)
  613.  
  614. Removes gs_setmetrics, which is no longer needed.
  615.  
  616. Implements gs_setcachedevice2, which provides support for
  617. setcachedevice2.
  618.  
  619. Speeds up gsave/grestore by allocating, deallocating, and copying as
  620. much as possible of the graphics state in a single operation.
  621.  
  622. Implements gs_{set/current}{color/colorspace/overprint/colorrendering/
  623. blackgeneration/undercolorremoval}.  Device, indexed (with table, not
  624. with procedure), CIE, and (substituted) separation colors are
  625. supported; some of the setup code for patterns is also present.
  626.  
  627. Increases the size of temporary file names in gdevprn.h from 30
  628. characters to 60.
  629.  
  630. Changes the character cache to be allocated dynamically in chunks.
  631.  
  632. Splits gxcache.c into gxccache.c (fast "hit" code) and gxccman.c (all
  633. other code).
  634.  
  635. Changes all occurrences of sizeof to size_of in order to work with the
  636. buggy SVR4.2 C compiler.
  637.  
  638. Adds a new concept of "external fonts", which allow a driver to
  639. substitute its own fonts for the ones obtained through the normal
  640. font machinery.
  641.  
  642. Changes all empty argument lists from () to (void), which is the ANSI
  643. C syntax.
  644.  
  645. Version 2.5.2 (9/20/92)
  646. =============
  647.  
  648. This is yet another bug fix release to (finally!) get the PCL drivers
  649. working again.
  650.  
  651. Procedures
  652. ----------
  653.  
  654. Fixes bugs:
  655.     - The comment in devs.mak for cdjcolor said it used 8 bits
  656. per pixel, rather than the correct 24.
  657.  
  658. Adds gsbj/dj/lj/lp and gslp.ps to the installed files on Unix
  659. systems.
  660.  
  661. Removes dps.dev and level2.dev from the standard configurations on
  662. all platforms, since the presence of the setcolor operator was
  663. causing the output of some common applications to fail.
  664.  
  665. Utilities
  666. ---------
  667.  
  668. Fixes bugs:
  669.     - font2c produced invalid output for any font that didn't use
  670. StandardEncoding or ISOLatin1Encoding.
  671.  
  672. Platforms
  673. ---------
  674.  
  675. Fixes bugs:
  676.     - gp_sysv.c required an extern long timezone.
  677.  
  678. Drivers
  679. -------
  680.  
  681. Fixes bugs:
  682.     - The PCL drivers were *still* doing the wrong thing about
  683. zeroing the seed row for Mode 3 compression.
  684.     - Setting the resolution with -r didn't work under Windows.
  685.     - The Windows driver got a stack overflow if it was ever
  686. asked to display a bit image wider than 32 pixels.
  687.     - The Tseng driver didn't sense the model (ET3000 vs. ET4000)
  688. correctly.
  689.  
  690. Adds the eps9high device to the standard MS-DOS makefiles.
  691.  
  692. Interpreter
  693. -----------
  694.  
  695. Fixes bugs:
  696.     - gs_run_string used gs_user_errors (a global) rather than
  697. user_errors (its argument) to control error handling.  (This does not
  698. affect normal operation of Ghostscript, only use as a server.)
  699.     - eexec popped the top element of the dictionary stack
  700. afterwards even if the encrypted code had pushed something onto it.
  701. This caused problems for some badly written PostScript code.
  702.     - The printed form of real numbers didn't always include a
  703. decimal point, causing compatibility problems.
  704.  
  705. Makes -s and -d work for device properties.
  706.  
  707. Increases the cache limit on large-memory systems.
  708.  
  709. Adds a check to ensure that the revision of gs_init.ps matches that
  710. of the interpreter.
  711.  
  712. Adds the .knownget operator.
  713.  
  714. Library
  715. -------
  716.  
  717. Fixes bugs:
  718.     - The raster computation in clist_render_init, and the
  719. computation of state_size in clist_open, didn't widen an operand to
  720. long, leading to possibly incorrect operation for 24-bit-per-pixel
  721. printers on MS-DOS systems.
  722.     - The flatness was set too large for Type 1 characters,
  723. leading to visible straight edges instead of curves at large sizes.
  724.     - Type 1 fonts that contained out-of-range coordinates would
  725. produce garbled output.  (This was not a problem with the standard
  726. Ghostscript fonts, or with Adobe Type Manager fonts.)
  727.     - gschar0.c wouldn't compile, because it referred to a
  728. non-existing structure member penum->chr.  (This had no effect on
  729. Ghostscript's operation.)
  730.     - The curve flattener required line segments to be no more
  731. than 8 x the flatness in length, leading to an enormous number of
  732. segments.
  733.     - pathforall would cause an addressing fault if the path
  734. consisted of only a moveto.
  735.  
  736. Refactors some header files so that std.h is always included before
  737. any system header file that might include sys/types.h.
  738.  
  739. Adds logic for removing top and bottom blank rows in cached
  740. characters.  (This is the beginning of compression for the cache.)
  741.  
  742. Changes the arguments of memswab2/4 from char * to byte *, for more
  743. accurate type conformance.
  744.  
  745. Version 2.5.1 (9/11/92)
  746. =============
  747.  
  748. This is the usual bug fix re-release.
  749.  
  750. Procedures
  751. ----------
  752.  
  753. Fixes bugs:
  754.     - The makefile rules for compiled fonts had a circular
  755. dependency.
  756.     - `make begin' didn't work properly on all platforms.
  757.  
  758. Ensures that all batch files end with a newline.  (The absence of the
  759. newline was confusing the GNU diff program.)
  760.  
  761. Documents the fact that the -dASCIIOUT switch no longer exists.
  762.  
  763. Utilities
  764. ---------
  765.  
  766. Fixes bugs:
  767.     - pstoppm didn't `bind' its internal procedures.
  768.     - grestoreall would undo the output device selected by
  769. pstoppm.
  770.  
  771. Changes the utilities for reading and writing Type 1 character
  772. outlines so they can work with stack representations as well as
  773. arrays.
  774.  
  775. Removes the pfbtogs.ps, phonbook.ps, and showpbm.ps utilities from
  776. the distribution.
  777.  
  778. Adds a gslj utility to parallel gslp and gsdj.
  779.  
  780. Platforms
  781. ---------
  782.  
  783. Adds the DeskJet 500C drivers (cdeskjet/cdj*) to the MS-DOS / Borland
  784. C++, MS-DOS / Watcom C/386, and MS-Windows configurations.
  785.  
  786. Removes the PCX file driver from the MS Windows executable, because
  787. the static data segment exceeded 64K.
  788.  
  789. Makes some changes in the Unix System V platform file (gp_sysv.c) and
  790. in time_.h and unixtail.mak to accommodate the 3B1.
  791.  
  792. Fonts
  793. -----
  794.  
  795. Fixes bugs:
  796.     - The Charter-Italic font was named bchi.pfa rather than
  797. bchri.pfa.
  798.     - The Cyrillic fonts (cyr.gsf, cyri.gsf) were omitted from
  799. the fileset.
  800.     - Ghostscript incorrectly assumed that all Type 1 fonts had a
  801. FontInfo dictionary.
  802.     - .loadfont used false PFBDecode, so a few .PFB fonts would
  803. get errors because the first eexec byte would be whitespace.
  804.  
  805. Changes font2c and its supporting code so that compiled fonts are
  806. location-independent.
  807.  
  808. Drivers
  809. -------
  810.  
  811. Fixes bugs:
  812.     - The margins for the H-P printers were still wrong.
  813.     - The H-P drivers accidentally cleared the compression seed
  814. row when switching compression modes.
  815.     - Some of the H-P drivers used the wrong control codes for
  816. skipping blank lines.
  817.  
  818. Adds user-supported drivers for the AT&T 3B1 console device, and for
  819. the NEC P6+ printer.
  820.  
  821. Updates the SunView driver with a new version supplied by a(nother)
  822. user.
  823.  
  824. Changes the X Windows driver so the Ghostscript window doesn't get
  825. input focus.
  826.  
  827. Changes the common code for the printer drivers so that if it can
  828. allocate a full bitmap but there isn't at least a minimum amount of
  829. memory left afterwards, it switches to banding.
  830.  
  831. Changes the Windows driver so it handles devices with more than 8
  832. bits per pixel.  (We haven't been able to test this.)
  833.  
  834. Adds a read-only PageCount device property (for printer devices
  835. only).
  836.  
  837. Changes all Aladdin-supported drivers to clip drawing requests to the
  838. ((0,0), (width,height)) rectangle of device space.
  839.  
  840. Interpreter
  841. -----------
  842.  
  843. Fixes bugs:
  844.     - Closing a NullEncode filter always gave an ioerror.
  845.     - If a single-character name occurred 1 character before the
  846. end of an input buffer, the character would be doubled.
  847.     - The procedures in gs_statd.ps didn't use "bind".
  848.     - Setting the page size didn't work properly with devices
  849. with rotated coordinate systems.
  850.     - If an error occurred, and the error object wasn't the last
  851. element of its procedure, the interpreter would re-execute the error
  852. object after running the error handler.
  853.     - Memory devices didn't get resized if HWSize was changed,
  854. leading to out-of-bounds memory accesses.
  855.  
  856. Moves revision and revisiondate from gs_init.ps to iinit.c.  Adds a
  857. -v switch that just prints these out.
  858.  
  859. Arranges things so that if Ghostscript is reading from a pipe (`-'
  860. switch on the command line) and encounters an error, it exits with
  861. status 1 rather than 0.
  862.  
  863. Changes the interpreter interface so the caller explicitly passes a
  864. pointer for storing an error object.
  865.  
  866. Library
  867. -------
  868.  
  869. Fixes bugs:
  870.     - The automatic adjustment of the scaling for variant paper
  871. sizes caused the image to get expanded when it should have been
  872. contracted, and vice versa.
  873.     - The curve flattener insisted that each line segment be no
  874. more than 2 x the flatness in length, leading to an enormous number
  875. of segments even when not necessary for accuracy.
  876.     - flattenpath and strokepath discarded a trailing moveto.
  877.     - strokepath treated "0-width" lines as really having a width
  878. of zero, rather than one pixel.
  879.     - Buffered devices weren't closed and reopened if the amount
  880. of buffer space was changed.
  881.     - stroke used the line cap at the beginning of each subpath
  882. even if the subpath was closed.
  883.  
  884. Removes the requirement that the clipping rectangle fall in the
  885. non-negative quadrant of device space.  (This was causing problems
  886. for Ghostview, but removing it required adding the extra clipping
  887. step to the drawing routines in the drivers.)
  888.  
  889. Version 2.5 (8/18/92)
  890. ===========
  891.  
  892. This version adds Type 1 hinting, CCITTFax encoding and decoding, and
  893. Microsoft Windows support, as well as the usual minor improvements
  894. and bug fixes.
  895.  
  896. Procedures
  897. ----------
  898.  
  899. Fixes bugs:
  900.     - GSIMPATH, SLZWD, and SLZWE were omitted from the VMS
  901. makefiles, and GSIM2OUT was not removed.
  902.     - landscap.ps messed up the current path.
  903.  
  904. Adds new switches:
  905.     -dSAFER disables file writing and directory modification.
  906.     -dESTACKPRINT causes errors to print the execution stack with
  907. == instead of =.
  908.     -sOutputFile=<string> replaces -sOUTPUTFILE (which is still
  909. recognized) for setting the output file or pipe for the default
  910. (printer) device.
  911.     -sPAPERSIZE=<sizename> initializes the paper size.
  912.     -dBufferSpace=<number> sets the buffer size for the default
  913. (printer) device.
  914.  
  915. For Unix systems, changes the directories in GS_LIB_DEFAULT from
  916. `pwd` to $(gsdatadir), i.e., normally $(datadir)/ghostscript, where
  917. datadir is normally /usr/local/lib.
  918.  
  919. Adds a note in the header file to the effect that the X Windows
  920. driver expects to find header files in $(XINCLUDE)/X11, not in
  921. $(XINCLUDE).
  922.  
  923. Changes -q so it defines QUIET as true instead of null (so it can be
  924. used in the middle of the command line as well as at the beginning).
  925.  
  926. Renames the history.doc file as NEWS.
  927.  
  928. Utilities
  929. ---------
  930.  
  931. Platforms
  932. ---------
  933.  
  934. Fixes bugs:
  935.     - The stack size was not getting increased on the Watcom
  936. platform.
  937.  
  938. Removes "b" from the scratch file opening modes in gp_unix.c and
  939. (conditionally) in gdevprn.c, to pacify the DECstation Ultrix system.
  940.  
  941. Adds a makefile (bcwin.mak) and a platform file (gp_mswin.c) for
  942. Microsoft Windows.
  943.  
  944. On MS-DOS platforms (including Windows), uses the TEMP environment
  945. variable to designate the directory for scratch files.
  946.  
  947. Changes std.h so that the VMS C compiler uses function prototypes and
  948. 'const'.
  949.  
  950. Changes the VMS cc makefile so it doesn't use ansi2knr.
  951.  
  952. Fonts
  953. -----
  954.  
  955. Fixes bugs:
  956.     - findfont left an extra entry on the stack if it couldn't
  957. find the default font.
  958.  
  959. Renames bchi, ncri, and puti as bchri, ncrri, and putri, to conform
  960. with the naming scheme for other fonts.
  961.  
  962. Adds $(CCFLAGS) to the command line used for compiling fonts.
  963.  
  964. Converts the .pfa fonts (CharterBT, IBM Courier, and Utopia) to .gsf,
  965. by removing eexec encryption and also removing some mysterious
  966. unmapped characters from Courier.  This makes these fonts work with
  967. DISKFONTS.
  968.  
  969. Changes the implementation of compiled fonts so they are read-only
  970. and sharable (no external references).  (They are, however, not
  971. position-independent.)
  972.  
  973. Provides a way to use compiled fonts on platforms that limit the
  974. number of characters in an identifier.
  975.  
  976. Adds public-domain Cyrillic and Cyrillic-Italic fonts.
  977.  
  978. Adds a 'userdict begin' to .loadfont, because Type 3 fonts produced
  979. by Fontographer expect a writable dictionary on the top of the stack.
  980.  
  981. Changes definefont for Type 1 fonts to insert UnderlinePosition and
  982. UnderlineThickness entries in FontInfo if they are absent, because
  983. many word processors incorrectly assume these entries are present.
  984.  
  985. Drivers
  986. -------
  987.  
  988. Fixes bugs:
  989.     - The documentation in use.doc said that the densities for
  990. 9-pin Epson printers were 60x60 to 240x60, rather than 60x72 to
  991. 240x72.
  992.     - gdevprn.c smashed one byte beyond the end of the string
  993. given as the OutputFile device property.
  994.     - The X11 driver used XVisualIDFromVisual, which is not
  995. defined in X11R3.
  996.     - The SunView driver modified the input data, which was
  997. declared as const.
  998.     - The LaserJet IIP and III drivers shifted the page 185
  999. pixels to the left and 0.25" down, because the initialization string
  1000. was incorrect.
  1001.     - The PCX driver wrote 16-bit values using the byte ordering
  1002. of the platform, rather than always LSB first.
  1003.     - For vertical spacing, the LaserJet and DeskJet drivers used
  1004. a command that spaces N/300", rather than N scan lines, but gave it a
  1005. parameter in scan lines.
  1006.     - The VESA driver didn't allocate a full 256-byte buffer for
  1007. reading the mode information from the BIOS, causing the stack to get
  1008. smashed by newer VESA implementations.
  1009.     - The VESA driver didn't use the scan line length returned by
  1010. the BIOS, causing garbage output for some cards and some resolutions.
  1011.     - The generic printer driver didn't free the bitmap when
  1012. closing the device, if it fit entirely in memory.
  1013.     - The PaintJet driver allocated its data areas on the stack
  1014. instead of with gs_malloc.
  1015.     - The generic printer driver didn't attempt to increase the
  1016. buffer size if it was too small.
  1017.     - The band list driver didn't split large bitmaps properly,
  1018. leading to garbled characters at high resolutions.
  1019.     - The GIF and PCX drivers used a color map that often turned
  1020. gray colors into non-grays.
  1021.  
  1022. Changes the default put_props procedure so that if the device is
  1023. open, setting HWSize and/or HWResolution closes the device and
  1024. reopens it.
  1025.  
  1026. Adds a driver for Microsoft Windows 3.n.
  1027.  
  1028. Updates the 'cdj' and 'dj500c' DeskJet 500C drivers with new versions.
  1029. (This are user-contributed drivers.)
  1030.  
  1031. Changes gdev_prn_put_props so OutputFile can be changed dynamically.
  1032.  
  1033. Updates the DEC LN03 driver to also handle the LA50 and LA75.  (This
  1034. is a user-contributed driver with a FSF copyright.)
  1035.  
  1036. Changes the LaserJet/DeskJet driver so that -DA4 in the makefile
  1037. makes A4 paper the default.  The driver now also sends an appropriate
  1038. page size selection command to the printer if the printer supports it.
  1039.  
  1040. Changes all the Aladdin-supported drivers to return appropriate error
  1041. codes rather than -1.
  1042.  
  1043. Adds a driver for the S3 86C911, a PC graphics accelerator used in
  1044. the popular Diamond Stealth board.  This is the first driver that
  1045. uploads character bitmaps to a device; others will probably follow.
  1046.  
  1047. Adds user-supplied code to the Epson driver so it will do triple
  1048. passes on 9-pin printers for higher resolution.
  1049.  
  1050. Adds user-supplied code for the PaintJet XL to the PaintJet driver.
  1051.  
  1052. Interpreter
  1053. -----------
  1054.  
  1055. Fixes bugs:
  1056.     - zdps1.c didn't include alloc.h.
  1057.     - On 32-bit systems, if maxlength of a dictionary was less
  1058. than the actual allocated space, length could become larger than
  1059. maxlength.
  1060.     - flushfile didn't actually flush data when reading.
  1061.     - The ASCII85Decode filter signalled EOF prematurely.
  1062.     - The scanner interpreted .3D.glorp as the number 0.3, rather
  1063. than as a name.
  1064.     - Closing a file freed the stream structure, creating
  1065. dangling references if there were other file objects pointing to the
  1066. same stream.
  1067.     - eexec called handleerror if an error occurred, instead of
  1068. letting the error propagate to an enclosing stopped.
  1069.     - gs.h made perror illegal, instead of defining it in terms
  1070. of strerror.
  1071.     - One-character names weren't being allocated at
  1072. initialization, so they could be left dangling after a restore.
  1073.     - Internal gsaves (i.e., the ones in show and setcachedevice)
  1074. didn't also save istate, so setfont inside a BuildChar procedure
  1075. might cause the font outside to get changed.
  1076.     - The allocator incorrectly freed objects in the current
  1077. chunk that were older than the current save.
  1078.     - mark was just an object, rather than an operator, so 'bind'
  1079. didn't bind it.  (This is theoretically a problem for null, true, and
  1080. false also, but even more unlikely to be a problem in practice.)
  1081.     - packed_get didn't cast packed integers to int, so negative
  1082. integer elements of packed arrays came out wrong.
  1083.     - quit just did a gs_exit, instead of returning to the driver
  1084. in an orderly way.
  1085.     - Because check_type_access checked for errors in the wrong
  1086. order, sometimes type errors were reported as access errors.
  1087.     - eq didn't check for stack underflow.
  1088.     - Some of the stream_procs structures weren't properly
  1089. declared const, leading to link errors on VMS.
  1090.  
  1091. Implements currentcolor, currentcolorspace, setcolor, and
  1092. setcolorspace (for DeviceGray, DeviceRGB, and DeviceCMYK only).
  1093.  
  1094. Implements the dictionary form of image and imagemask.  All the pairs
  1095. in the Decode array must be the same; Interpolate is ignored.  The
  1096. only supported color spaces are DeviceGray, DeviceRGB, and
  1097. DeviceCMYK.
  1098.  
  1099. Implements files as allowable sources for the image operators.
  1100.  
  1101. Removes the index field from the name structure, moving it to the
  1102. 'size' field of name refs.
  1103.  
  1104. Changes the unread/sungetc operation to require that the character be
  1105. the same as the last one read from the file.
  1106.  
  1107. Adds fflush calls to some debugging printout routines, because Unix
  1108. sometimes buffers terminal output.
  1109.  
  1110. Implements the CCITTFaxEncode and CCITTFaxDecode filters.  Implements
  1111. the general case of the SubFileDecode filter.
  1112.  
  1113. Changes definefont to treat a UniqueID of 0 as equivalent to no
  1114. UniqueID, because Fontographer output apparently often violates the
  1115. specification in this way.
  1116.  
  1117. Changes the default printer screen from 32.5 to 46 cells/inch.  (The
  1118. old value was appropriate for a hand-rotated cell with two spots in
  1119. it.)
  1120.  
  1121. Changes the utility routines to allow an integral real wherever an
  1122. integer parameter is expected in a dictionary, because Fontographer
  1123. produces fonts that violate the Adobe specification in this way.
  1124.  
  1125. Adds a `dosio' feature that provides direct access to memory and to
  1126. I/O ports under MS-DOS.  (This feature is not included in the
  1127. standard executables, of course.)
  1128.  
  1129. Changes the default character cache limit to a 1/4" x 1/4" character
  1130. at the default resolution, rather than basing it on the preallocated
  1131. cache size.
  1132.  
  1133. Removes support for t_color objects, which haven't actually been used
  1134. for several releases.
  1135.  
  1136. Implements setcmykcolor and currentcmykcolor as operators, so they
  1137. will interact properly with setcolorspace and currentcolorspace.
  1138.  
  1139. Changes the name of the file.h header file to files.h, to work around
  1140. a bug in the VMS header library.
  1141.  
  1142. Adds command line switches @file (to treat file as more command line,
  1143. to get around the DOS 128-character command line limit) and -ffile
  1144. (so one can specify file names that begin with - or @).
  1145.  
  1146. Changes the PFBDecode filter so it takes an additional boolean that
  1147. says whether or not to convert binary packets to hex.  (Conversion to
  1148. hex and back to binary accounted for a substantial amount of the time
  1149. required to load .PFB fonts.)
  1150.  
  1151. Splits off `copydevice' as a separate operator again.
  1152.  
  1153. Library
  1154. -------
  1155.  
  1156. Fixes bugs:
  1157.     - In the VMS environment, string_.h used its own prototypes
  1158. for the str... and mem... functions instead of <string.h>
  1159.     - gx_alloc_char_bits declared cdsize as long, but didn't
  1160. shorten it when passing it to shorten_cached_char.
  1161.     - Stroking didn't suppress fattening of the lines.
  1162.     - kshow didn't update the cached CTM information in the show
  1163. enumerator when returning from the callout, so further characters
  1164. could get drawn in the wrong place.
  1165.     - When a memory device returned its initial matrix, it
  1166. smashed the padding fields, which contained the interpreter's type
  1167. information.
  1168.     - setcachedevice didn't set the initial matrix in the cache
  1169. memory device.
  1170.     - image_set_rgb (in the image operators) didn't do a
  1171. gx_color_from_rgb, so in principle one could sometimes get incorrect
  1172. colors in an image.
  1173.     - The decision about whether or not to cache a character
  1174. bitmap incorrectly compared the character size against cmax rather
  1175. than cdata_size.
  1176.     - show didn't reset the in_cachedevice flag in the graphics
  1177. state, so characters rendered by a recursive show were never cached.
  1178.     - clip and eoclip didn't release the intermediate flattened
  1179. clip path, causing memory to be lost.
  1180.     - The tile_diff routine didn't handle the case of two
  1181. identical tiles properly; this produced garbage in the band list
  1182. file.
  1183.     - stringwidth didn't round the character origin to an
  1184. integral pixel; this interacted badly with hinting, causing
  1185. improperly hinted characters to wind up in the cache.
  1186.     - Bitmaps (including characters) were displaced, as well as
  1187. being clipped, if they intersected the top of a clipping region.
  1188.     - In gxclist and gdevmem1, the raster computation (although
  1189. not the result) could overflow an int on 16-bit machines.
  1190.  
  1191. Implements decoding (sample mapping) for image and imagemask.
  1192.  
  1193. Implements hinting for Type 1 fonts, based on (but not copying) the
  1194. algorithms from the X11R5 tape.
  1195.  
  1196. Changes curve rasterizing to use sampling, rather than recursive
  1197. subdivision, for characters.  This produces noticeably better output.
  1198. Speed penalty for non-cached characters is less than 10% at display
  1199. resolutions, up to 50% for 300 dpi printers.
  1200.  
  1201. Implements gs_setcmykcolor and gs_currentcmykcolor.  These are
  1202. semi-fake, since they simply convert the color to and from RGB, but
  1203. the former does set the current color space properly.
  1204.  
  1205. Changes clipping regions so they use the any-part-of-pixel rule
  1206. rather than the center-of-pixel rule.  This helps avoid dropouts when
  1207. using very small regions.
  1208.  
  1209. Implements stroke adjustment.
  1210.  
  1211. Version 2.4.2 (5/8/92)
  1212. =============
  1213.  
  1214. This is another quick release.  It finally fixes rotated halftone
  1215. screens, and cleans up a few minor problems from 2.4.1.
  1216.  
  1217. This release is being distributed only to beta testers and commercial
  1218. licensees, since I don't want to be distracted from working on 2.5.
  1219.  
  1220. Procedures
  1221. ----------
  1222.  
  1223. Fixes bugs:
  1224.     - UTRACE still appeared in the VMS makefiles.
  1225.     - The support files (*.bat, *.doc, *.gsf, *.ps, Fontmap,
  1226. COPYING, README) weren't included in the MS-DOS tar file.
  1227.     - The Unix install script didn't install landscap.ps.
  1228.  
  1229. Replaces the type1imagepath operator with PostScript code (impath.ps,
  1230. type1ops.ps) based on the new .imagepath operator.
  1231.  
  1232. Renames LICENSE as COPYING.
  1233.  
  1234. Utilities
  1235. ---------
  1236.  
  1237. Fixes bugs:
  1238.     - pcharstr.ps had an occurrence of Subrs rather than /Subrs,
  1239. causing it to not print the Subrs, or to get an error if there were
  1240. none.
  1241.     - font2c.ps didn't get the const declarations for string
  1242. dictionaries quite right.
  1243.     - The missing newline at the end of gsbj.bat confused GNU
  1244. diff.
  1245.     - ansi2knr would go into an infinite loop if a statement
  1246. exceeded its internal buffer size.
  1247.     - Compiled fonts would get processed by ansi2knr, which
  1248. messed them up.
  1249.  
  1250. Platforms
  1251. ---------
  1252.  
  1253. Fixes bugs:
  1254.     - Ghostscript didn't supply equivalents for rename and
  1255. gettimeofday, which some System V platforms lack.
  1256.     - The missing newline at the end of gp_dosfb.c confused GNU
  1257. diff.
  1258.  
  1259. Changes the Borland makefiles so that stack checking is only enabled
  1260. if DEBUG or TDEBUG is set.
  1261.  
  1262. Fonts
  1263. -----
  1264.  
  1265. Changes the names of the Utopia fonts from utrg/utb/utbi/uti to
  1266. putr/putb/putbi/puti, for consistency with the rest of the font names.
  1267. Changes cour/courb/courbi/couri to ncrr/ncrb/ncrbi/ncri likewise.
  1268.  
  1269. Replaces the Charter fonts with the CharterBT fonts donated by
  1270. Bitstream to the X11R5 distribution.
  1271.  
  1272. Adds font aliasing capability to Fontmap.  Replaces
  1273. Courier-[Bold]Oblique and ZapfChancery-MediumItalic by aliases.
  1274.  
  1275. Changes the FontBBox of the Hershey fonts to be an executable, rather
  1276. than a literal, array.
  1277.  
  1278. Drivers
  1279. -------
  1280.  
  1281. Fixes bugs:
  1282.     - The GIF driver omitted a `private' on the definition of
  1283. gif_print_page.
  1284.     - The GIF driver wrote 16-bit values using the byte ordering
  1285. of the platform, rather than always LSB first.
  1286.     - George Cameron's DeskJet 500C driver had an incorrect
  1287. control sequence for skipping blank lines.
  1288.  
  1289. Adds 'const' in many places, including the tile and bitmap arguments
  1290. of the tile_rectangle, copy_mono, and copy_color driver routines.
  1291. THIS IS A DRIVER INTERFACE CHANGE.  (Printer drivers are not
  1292. affected, since they don't implement these routines.)
  1293.  
  1294. Adds a driver for the Trident TVGA.
  1295.  
  1296. Interpreter
  1297. -----------
  1298.  
  1299. Fixes bugs:
  1300.     - alloc_free sometimes incorrectly chose to put an unaligned
  1301. block in an old segment on a freelist.
  1302.     - The default undercolor removal function returned its
  1303. argument rather than returning 0.
  1304.  
  1305. Adds NullEncode and SubFileDecode to the standard filters, since
  1306. bdftops uses the latter.
  1307.  
  1308. Adds RunLengthEncode and RunLengthDecode to the optional filters.
  1309.  
  1310. Removes the type1imagepath operator.  (It is still available as
  1311. PostScript code, impath.ps.)  Replaces it with a simpler outline
  1312. tracing operator .imagepath.
  1313.  
  1314. Adds 'const' in many places.
  1315.  
  1316. Makes fileposition (but not setfileposition) legal for NullEncode
  1317. filters.
  1318.  
  1319. Changes the default transfer function for high-resolution devices
  1320. from the identity function to the square root function.
  1321.  
  1322. Moves array_get from zgeneric.c to iutil.c.
  1323.  
  1324. Changes uses of fopen to add a "b" to the access mode, rather than
  1325. relying on the _fmode global variable on MS-DOS platforms.
  1326.  
  1327. Allows use of the -Z switch even when gsmain.c wasn't compiled with
  1328. -DDEBUG, since other modules might have been.
  1329.  
  1330. Reorganizes gs.c and gsmain.c so that the latter can be used in
  1331. server environments.
  1332.  
  1333. Replaces all uses of stdin/out/err with gs_stdin/out/err.
  1334.  
  1335. Makes the number of permanent entries on the dictionary stack a
  1336. parameter, to allow inserting globaldict in the future.
  1337.  
  1338. Changes BlueShift in the Type 1 font Private dictionary to allow real
  1339. numbers.  (This differs from the Adobe specification, but at least
  1340. one commercial font has a real number for BlueShift.)
  1341.  
  1342. Library
  1343. -------
  1344.  
  1345. Fixes bugs:
  1346.     - The doubling check in init_ht (gxht.c) still sometimes
  1347. thought there was enough room to double the tile when there actually
  1348. wasn't.
  1349.     - Rotated halftone screens didn't work.
  1350.     - gxarith.h used #ifdef vax, rather than #if
  1351. !arch_floats_are_IEEE, to test whether IEEE floats were being used.
  1352.     - pathforall didn't report a trailing moveto.
  1353.  
  1354. Replaces gs_type1imagepath with gs_imagepath.
  1355.  
  1356. Allows sOUTPUTFILE=-, meaning output to stdout.
  1357.  
  1358. Adds 'const' in many places.
  1359.  
  1360. Replaces all uses of stdin/out/err with gs_stdin/out/err.
  1361.  
  1362. Version 2.4.1 (4/21/92)
  1363. =============
  1364.  
  1365. This is a quick release to fix minor problems discovered in 2.4, and
  1366. to add a few improvements that didn't quite make it into 2.4.  It
  1367. also adds GIF and PCX file support.
  1368.  
  1369. Procedures
  1370. ----------
  1371.  
  1372. Fixes bugs:
  1373.     - Some makefile dependencies, and the ccgs script, caused trouble
  1374. for parallel versions of `make'.
  1375.     - Compiling genarch with -O with gcc on the RS/6000 produced a
  1376. buggy executable.
  1377.  
  1378. Fixes some minor problems in make.doc.
  1379.  
  1380. Adds DEVICE_DEVS2..5 to handle long device lists.
  1381.  
  1382. Removes the need to set GS_RUN_EXE when using the Watcom compiler on
  1383. MS-DOS systems.
  1384.  
  1385. Gets rid of gs_ccfnt.ps, merging its function into gs_fonts.ps.
  1386.  
  1387. Gets rid of gconfig.ps; this information is now compiled in gconfig.c.
  1388.  
  1389. Utilities
  1390. ---------
  1391.  
  1392. Fixes bugs:
  1393.     - The palette for pstoppm in 8-bit mode didn't contain all 8
  1394. primary colors.
  1395.     - font2c used just values_ to mean &values_[0]; some compilers
  1396. couldn't handle this.
  1397.  
  1398. Makes font2c insert `const' in many appropriate places.
  1399.  
  1400. Drivers
  1401. -------
  1402.  
  1403. Fixes bugs:
  1404.     - The SunView driver had not been updated properly for 2.4 and was
  1405. pretty thoroughly broken.
  1406.     - None of the printer drivers worked properly with the Watcom
  1407. compiler, because stdprn was doing \n -> \r\n substitution.
  1408.     - If the generic printer driver couldn't allocate the requested
  1409. size command list buffer, it gave up rather than trying to allocate a
  1410. smaller buffer.
  1411.     - The SuperVGA drivers (except for the VESA driver) didn't
  1412. work with the Watcom compiler, because a couple of places in the
  1413. drivers weren't truncating the offset of "segmented" pointers
  1414. properly.
  1415.     - Some of the H-P used <esc>*b#Y rather than <esc>*p+#Y for
  1416. vertical positioning; this apparently is wrong, at least for the
  1417. LJIIp.
  1418.  
  1419. Removes the dependence of the X Windows driver on Xt, Xext, and Xmu.  As a
  1420. result, Ghostscript will not install a standard colormap itself, but it
  1421. will use one if one is already installed.
  1422.  
  1423. Adds a set of drivers for Portable Bitmap, Graymap, and Pixmap file
  1424. formats.
  1425.  
  1426. Adds drivers for monochrome, EGA/VGA-style, and SuperVGA-style PCX
  1427. file formats.
  1428.  
  1429. Adds drivers for monochrome and 256-color GIF file formats.
  1430.  
  1431. Fonts
  1432. -----
  1433.  
  1434. Adds ZapfChancery-MediumItalic as a copy of ZapfChancery-Oblique.
  1435.  
  1436. Interpreter
  1437. -----------
  1438.  
  1439. Fixes bugs:
  1440.     - A value with l_new set could 'escape' to save level 0 on a
  1441. stack; if stored, it prevented the slot from being saved and restored
  1442. properly.
  1443.     - 16#7fffffff + 1 gave the floating point equivalent of -2^31, not
  1444. 2^31.
  1445.     - The PFBDecode filter computed the packet length incorrectly if
  1446. the 0x8000-bit of the length was set.
  1447.     - 5-byte numbers in Type 1 CharStrings complained of a rangecheck
  1448. if they exceeded 16 bits, rather than if they exceeded the integer part of
  1449. a fixed.
  1450.     - (, ), and \ appearing in file name arguments in the command
  1451. line did not work properly.
  1452.  
  1453. Adds 'const' in many places.
  1454.  
  1455. Changes the random number generator to be the same as the one used in
  1456. Level 2 PostScript (as reported by Ed Taft on comp.lang.postscript).
  1457.  
  1458. Exits with code 1 rather than code 0 on an unrecoverable error detected at
  1459. the PostScript level.
  1460.  
  1461. Makes dictionaries expand automatically when they fill up.
  1462.  
  1463. Adds gp_exit to complement gp_init.
  1464.  
  1465. Changes dictionaries to always allocate a power of 2 entries on
  1466. 32-bit machines.  Changes the name table to allocate indices
  1467. scattered, so dictionary lookup doesn't have to do a multiply to
  1468. scramble the index.
  1469.  
  1470. Changes the handling of currentfile to do "shallow binding" so stack
  1471. searching is almost never required.
  1472.  
  1473. Library
  1474. -------
  1475.  
  1476. Fixes bugs:
  1477.     - arc and arcn got a numeric exception if the radius was zero.
  1478.     - The undocumented 15 opcode in Type 1 fonts wasn't ignored.
  1479.     - PaintType 3 wasn't allowed.  (It isn't clear what it should
  1480. mean; we treat it as equivalent to 0.)
  1481.     - The VAX/VMS C compiler was generating incorrect code for the
  1482. chi_bits and cmask macros in gdevmem, producing incorrect output.
  1483.     - If the result of the slow algorithm for intersecting clipping
  1484. paths was a rectangle, the wrong thing happened (cbox didn't get set).
  1485.     - gx_path_is_rectangle didn't recognize open rectangles.
  1486.     - clist_change_tile didn't check properly whether the tile
  1487. size had changed, so changing the screen could produce invalid band
  1488. files.
  1489.     - The image operators did the wrong thing in the 1-for-1
  1490. case, interleaving N bytes of data with 7*N bytes of garbage.
  1491.     - stroke sometimes handled bevel and miter joins wrong in
  1492. reflected coordinate systems.
  1493.     - init_ht checked incorrectly whether there was enough room
  1494. to Y-replicate tiles, so sometimes it did it when it shouldn't have.
  1495.     - stroke sometimes thought lines were thin when they weren't.
  1496.  
  1497. Adds 'const' in many places.
  1498.  
  1499. Adds support for 2- and 4-bit-per-pixel memory devices.
  1500.  
  1501. Version 2.4 (3/25/92)
  1502. ===========
  1503.  
  1504. This is a major release that adds SuperVGA support, support for Metrics,
  1505. settable device properties, and incremental font loading.  It also
  1506. includes important performance improvements, based on rewrites of some key
  1507. algorithms, and quite a few new Level 2 / Display PostScript facilities.
  1508.  
  1509. Procedures
  1510. ----------
  1511.  
  1512. Fixes bugs:
  1513.     - The rule for compiling gconfig.c didn't include the -I switches.
  1514.     - .bat files were being distributed with a \n line terminator
  1515. rather than \r\n.
  1516.     - A CLOSE MODULE_LIST was needed after END_COMPILE: in the VMS
  1517. command files.
  1518.     - Unix systems couldn't handle multiple drivers with overlapping
  1519. sets of files.
  1520.     - -s<name> defined <name> as a null, rather than as an empty string.
  1521.  
  1522. Adds gconfig.ps to the list of needed configuration files.
  1523.  
  1524. Changes the way that the makefile handles nested .h files, so that it
  1525. doesn't have to `touch' them.
  1526.  
  1527. Adds the loadallfonts procedure to gs_fonts.ps.
  1528.  
  1529. Changes the standard DOS configuration to include VGA, EGA, VESA, Epson,
  1530. BubbleJet, and H-P printer drivers.
  1531.  
  1532. Renames ghost.mak as gs.mak, and gdevs.mak as devs.mak.
  1533.  
  1534. Adds a USE_ASM flag so that one can build a DOS version of Ghostscript
  1535. without having an assembler.
  1536.  
  1537. Splits off common code from the two MS-DOS makefiles into tccommon.mak.
  1538.  
  1539. Replaces the COPYING and LICENSE files with a new LICENSE file containing
  1540. version 2 of the GNU General Public License.
  1541.  
  1542. Removes DEVICES and DEVICE_OBJS from the makefiles, since they are no
  1543. longer needed.
  1544.  
  1545. Adds a GS_DEVICE environment variable to supply a default device name if
  1546. desired.
  1547.  
  1548. Adds ansihead.mak and unix-ansi.mak, to parallel [g]cc-head.mak and
  1549. unix-[g]cc.mak, for other ANSI C compilers.
  1550.  
  1551. Changes the way that optional features are defined in the makefiles, so
  1552. that they actually work.
  1553.  
  1554. Adds support for the Watcom C/386 compiler.
  1555.  
  1556. Allows # in the command line as equivalent to =, to compensate for
  1557. brain-damaged MS-DOS shell.
  1558.  
  1559. Adds -sOUTPUTFILE= to set the output file or pipe.
  1560.  
  1561. Adds -dWRITESYSTEMDICT to leave systemdict writable.
  1562.  
  1563. Utilities
  1564. ---------
  1565.  
  1566. Fixes bugs:
  1567.     - pcharstr.ps insisted on having Subrs be present in the font.
  1568.     - pcharstr.ps decoded negative numbers between -108 and -1131
  1569. incorrectly.
  1570.     - pfbtogs.ps didn't handle packets longer than 64K correctly.
  1571.  
  1572. Changes the bdftops utility so that it makes entries for UnderlinePosition
  1573. and UnderlineThickness in FontInfo, and so that it always records a
  1574. FullName (the FontName if no other is provided).
  1575.  
  1576. Changes the name of the pfbtops utility to pfbtogs, because groff already
  1577. includes a program called pfbtops.
  1578.  
  1579. Adds the gslp utility for doing "line printing" of text files, similar to
  1580. enscript + lpr.
  1581.  
  1582. Adds a new variable DITHERPPI that enables a different dither pattern,
  1583. claimed to be better for printers.
  1584.  
  1585. Adds the font2c utility for compiling Type 1 fonts into C, so they can be
  1586. linked into an executable rather than loaded dynamically.
  1587.  
  1588. Drivers
  1589. -------
  1590.  
  1591. Fixes bugs:
  1592.     - gdev_prn_copy_scan_lines was erroneously masking the last byte
  1593. of data even on color printers, as was paintjet_print_page.
  1594.     - The TruFax driver had a couple of compilation errors, since it
  1595. hadn't been compiled in a while.
  1596.     - The BGI driver sometimes didn't consult BGIPATH when looking for
  1597. .BGI files.
  1598.     - initclip did the wrong thing with memory devices.
  1599.     - The BGI driver didn't look in BGIDIR for .BGI files.
  1600.     - The Epson driver didn't set the right margin properly with
  1601. ESC+Q.
  1602.     - The BJ-10e driver was badly broken.
  1603.     - gdev_prn_open/close_printer didn't reset the command list file,
  1604. so it was taking quadratic time to print multi-page documents.
  1605.  
  1606. Adds color to the SunView driver.
  1607.  
  1608. Adds selectable resolution (75, 100, 150, or 300 DPI) to the
  1609. DeskJet/LaserJet driver.
  1610.  
  1611. Changes gssetdev so that drivers can specify special libraries to be
  1612. loaded, as well as object files.
  1613.  
  1614. Adds a driver for VESA-compliant SuperVGA displays.  This driver handles
  1615. all resolutions from 640 x 400 up to 1280 x 1024, in 256-color mode.  The
  1616. default is VGA resolution (640 x 480).
  1617.  
  1618. Adds a driver for the ATI Wonder SuperVGA card, and for SuperVGA cards
  1619. using the Tseng Labs ET3000 or ET4000 chip such as the STB VGA EM-16 and
  1620. the Orchid ProDesigner II (256-color modes only).
  1621.  
  1622. Adds a driver for Trident and Tseng Labs SuperVGA cards in 800 x 600,
  1623. 16-color modes (for cards with only 256K of memory).
  1624.  
  1625. Adds user-contributed drivers for the Ricoh 4081, DEC LN03, Canon LBP-8II,
  1626. and H-P DeskJet 500C printers.
  1627.  
  1628. Adds Tim Theisen's Ghostview changes to the X11 driver.
  1629.  
  1630. MAKES NON-BACKWARD-COMPATIBLE CHANGES TO THE DRIVER PROCEDURE INTERFACE as
  1631. follows:
  1632.  
  1633.     - Changes map_rgb_color and map_color_rgb to always work in a
  1634.         16-bit color value space, rather than a space defined by the
  1635.         maximum number of distinct colors provided by the device.
  1636.  
  1637.     - Adds an argument to the output_page procedure to indicate
  1638.         whether the procedure is being called for copypage or
  1639.         showpage, and a num_copies argument.
  1640.  
  1641.     - Adds a gx_bitmap_id to the copy_ and tile_ procedures, so that
  1642.         drivers can cache bitmaps in the server or device if they want
  1643.         to.
  1644.  
  1645.     - Removes fill_trapezoid and tile_trapezoid.
  1646.  
  1647.     - Adds a new get_bits procedure for reading the bits back from the
  1648.         driver buffer (when possible), replacing copy_scan_lines.
  1649.         This procedure takes a new argument describing padding and
  1650.         byte swapping, and returns a different value from
  1651.         copy_scan_lines.
  1652.  
  1653.     - Adds get_props and put_props procedures for accessing arbitrary
  1654.         additional properties of devices.  The interface is quite
  1655.         complex, but provides a great deal of flexibility.
  1656.  
  1657. See drivers.doc for details.
  1658.  
  1659. Changes gdev_mem_bytes_per_scan_line to gdev_prn_bytes_per_scan_line.
  1660.  
  1661. Adds a user-contributed driver for DigiBoard, Inc.'s fax software.
  1662.  
  1663. Fonts
  1664. -----
  1665.  
  1666. Changes Type1BuildChar so it uses the information from the Metrics
  1667. dictionary in the font, if Metrics is present.
  1668.  
  1669. Changes findfont (.loadfont) so it recognizes .PFB fonts and can load them
  1670. directly.  Also changes .loadfont to disable packing temporarily, because
  1671. some fonts rely on procedures being writable (!).
  1672.  
  1673. Interpreter
  1674. -----------
  1675.  
  1676. Fixes bugs:
  1677.     - The hypot function is not available on some Unix systems.
  1678.     - Ghostscript didn't flush and close files when exiting.
  1679.     - In statusdict, the /margins procedure used .leftmargin, but
  1680. /setmargins used .lmargin.
  1681.     - An out-of-range putinterval would simply do nothing, rather than
  1682. reporting an error.
  1683.     - If an attempt to allocate a block larger than the allocator's
  1684. chunk size (20K) failed, the allocator would erroneously think it had
  1685. succeeded.
  1686.     - The bind operator made the top-level procedure read-only, as
  1687. well as interior procedures.
  1688.     - gs.c copied 1 extra character for the value of strings defined
  1689. on the command line with -s...=, which could smash the first byte of the
  1690. next object in memory.
  1691.     - copying a dictionary erroneously required the maxlength of the
  1692. destination to be greater than or equal to the maxlength of the source,
  1693. rather than the length of the source.
  1694.     - undef didn't correctly decide when to mark a deleted entry as
  1695. deleted vs. free; as a result, some keys couldn't be looked up properly
  1696. after an undef.
  1697.     - type1encrypt and type1decrypt didn't set the size of the result
  1698. properly.
  1699.     - cvi and cvr didn't allow leading or trailing whitespace in
  1700. strings.
  1701.     - cvs didn't cause an error if the destination string was too
  1702. short.
  1703.     - Many operators didn't check correctly for stack underflow (off
  1704. by 1).
  1705.     - `for' used reals, rather than integers, if the limit was a real,
  1706. even if the initial value and increment were integers.
  1707.     - `restore' didn't properly invalidate copies of the save object
  1708. being restored from; `save dup restore restore' would crash.
  1709.     - `restore' sometimes didn't undo stores into matrices that were
  1710. stored into by operators.  (The identity matrix always had l_new set.)
  1711.     - readline gave a rangecheck if the input line exactly filled the
  1712. string.
  1713.     - `--' as the last switch on the command line caused a crash
  1714. rather than an error message.
  1715.     - On MS-DOS systems, filenameforall didn't handle patterns with a
  1716. drive or directory specifier properly.
  1717.     - stroke sometimes called gz_draw_line_fixed even if the line went
  1718. outside the clipping box by 1 pixel.
  1719.  
  1720. Changes the loop that binds procedure "operators" to entirely disable the
  1721. handling of the typecheck error, rather than to use stopped.  This cuts
  1722. initialization time significantly, and also eliminates about 35K of wasted
  1723. space (for saving the stacks).
  1724.  
  1725. Changes the version "operator" so it returns 47.0.  Adds "revision" to
  1726. define the Ghostscript version # x 100.
  1727.  
  1728. Adds gscurrentresolution and gssetresolution procedures for getting and
  1729. setting the device resolution.
  1730.  
  1731. Adds -r<res> and -r<xres>x<yres> as command line options for setting
  1732. device resolution.
  1733.  
  1734. Adds a facility for incrementally loading the individual CharStrings of a
  1735. Ghostscript font from the disk.  This can save a lot of memory, at the
  1736. expense of slower rendering.  (It is intended primarily for MS-DOS
  1737. systems.)
  1738.  
  1739. Changes findlibfile to return the name of the file that was actually
  1740. opened, as well as the file itself, when the operation succeeds.
  1741.  
  1742. Changes the name of the main entry to the interpreter from interpret to
  1743. gs_interpret, because of a conflict with a Data General library procedure.
  1744.  
  1745. Adds the .setmetrics operator to set the metrics for the current
  1746. character for Type 1 fonts.
  1747.  
  1748. Adds more LaserWriter-specific entries to statusdict.
  1749.  
  1750. Gives names to all the internal `operators', so they will print out
  1751. reasonably when an error occurs.
  1752.  
  1753. Extends the status operator to accept a string and return file
  1754. information, as defined for Level 2 PostScript.
  1755.  
  1756. Adds the filter operator and some specific filters: ASCII85Encode,
  1757. ASCII85Decode, ASCIIHexEncode, ASCIIHexDecode, eexecDecode, NullEncode,
  1758. PFBDecode, and the null case of SubFileDecode.
  1759.  
  1760. Extends the scanner to recognize the Level 2 << and >> tokens.
  1761.  
  1762. Adds a facility for extracting the text strings from a PostScript file and
  1763. writing them out in a simple format (selected by -dASCIIOUT, implemented
  1764. by gs_2asc.ps).
  1765.  
  1766. Implements all of the remaining Display PostScript facilities that are
  1767. also in Level 2 (i.e., everything in section A.1.3 of the PostScript
  1768. Language Reference Manual, Second Edition, that is not also in section
  1769. A.1.2).  The virtual memory operations are all stubs; the new halftone
  1770. options are not fully implemented.
  1771.  
  1772. Changes makeimagedevice to use a string of gray or RGB values, rather than
  1773. an array of color objects, to specify the palette.  Removes
  1774. currentgscolor and setgscolor from the interpreter, but leaves t_color
  1775. objects in, since they may be useful later.
  1776.  
  1777. Adds getdeviceprops and putdeviceprops for manipulating device properties.
  1778. Currently defined properties for all devices: InitialMatrix, HWResolution,
  1779. HWSize, Name.  Currently defined properties for printers: BufferSpace,
  1780. MaxBitmap, OutputFile.  OutputFile allows |command for piping on Unix
  1781. systems.
  1782.  
  1783. Removes deviceparams and makedevice.  Adds devicedefaultmatrix.
  1784.  
  1785. Implements reversepath.
  1786.  
  1787. Makes copy work on devices.
  1788.  
  1789. MS-DOS specific
  1790. - - - - - - - -
  1791.  
  1792. Fixes bugs:
  1793.     - iutilasm.asm wouldn't assemble with newer versions of MASM if
  1794. CPU_TYPE was set to 286 or above.
  1795.     - CPU_TYPE=386 didn't properly substitute the faster
  1796. multiply/divide routines under Turbo C++ or Borland C++, only under the
  1797. original Turbo C.
  1798.  
  1799. Library
  1800. -------
  1801.  
  1802. Fixes bugs:
  1803.     - A curve whose first and last points were the same wouldn't get
  1804. drawn at all.
  1805.     - A bug in the Turbo C++ compiler generated bad code when shifting
  1806. a long right by 1 bit.
  1807.     - If stroking a dashed line ever encountered a segment that was
  1808. completely blank, Ghostscript would indirect through a null pointer.
  1809.     - arc and arcn gave an error if the radius was negative.
  1810.     - stroke always used the general algorithm, even if the line was
  1811. guaranteed to be thin.
  1812.     - arc and arcn erroneously reduced the angles mod 360.
  1813.     - Very large or negative 32-bit numbers in Type 1 fonts didn't
  1814. work properly on MS-DOS systems (the ff0000 bits got set to zero). 
  1815.     - Color printer devices rendering entirely in memory only
  1816. allocated a monochrome-sized bitmap.
  1817.     - clip and eoclip didn't intersect the paths properly in the
  1818. general case.
  1819.     - charpath erroneously rounded the current point to an integral
  1820. value, causing characters to be spaced improperly.
  1821.     - The definition of max_color_param got some compilers confused.
  1822.     - charpath always used quadratic time and space, and dropped all
  1823. but the last character when used with a Type 3 font.
  1824.     - Stroking a path with a 180 degree angle would incorrectly miter
  1825. instead of beveling.
  1826.     - Type 1 fonts used the current flatness for curves, which could
  1827. produce bad (and inconsistent) results.
  1828.     - Stroking a degenerate line segment produced incorrect results.
  1829.  
  1830. Changes the character cache to use the UniqueID as the key, when
  1831. available, instead of the font pointer.  This dramatically improves
  1832. performance when fonts are getting removed and reloaded because of page
  1833. isolation with save/restore.
  1834.  
  1835. Removes some unnecessary casts to (float) from gsmatrix.c and gscoord.c.
  1836.  
  1837. Changes the Type 1 interpreter so that it rounds line and curve endpoints
  1838. to the center of the nearest half-pixel, and omits null line segments.
  1839. This both speeds up rendering at small sizes and improves output quality.
  1840.  
  1841. Changes gs_deviceparams to return resolution as well as extent; changes
  1842. gs_makedevice to accept resolution as well as extent.
  1843.  
  1844. Replaces the algorithm for approximating circular arcs with curves with a
  1845. more accurate one.
  1846.  
  1847. Changes gs_point and gs_rect to use doubles rather than floats.
  1848.  
  1849. Adds gs_setmetrics, for overriding Type 1 font metrics for the current
  1850. character.
  1851.  
  1852. Changes clipping to use lists of rectangles rather than path intersection.
  1853.  This makes a big difference when clipping bitmaps (including characters).
  1854.  
  1855. Changes the character cache to discard entries incrementally, rather than
  1856. clearing the entire cache when it fills up.
  1857.  
  1858. Changes the implementation of transfer functions to use a cached map,
  1859. built when the transfer function is set.  This makes transfer functions
  1860. work properly in all situations, including images.
  1861.  
  1862. Defines a .quit operator that takes an exit code, and redefines quit in
  1863. terms of it.
  1864.  
  1865. Adds support for 16-bit-per-pixel devices in gdevmem.
  1866.  
  1867. Adds gs_copydevice and gs_deviceinitialmatrix; removes gs_deviceparams and
  1868. gs_makedevice.
  1869.  
  1870. Changes setscreen to ensure that the cell is always at least 4x4 pixels in
  1871. size.
  1872.  
  1873. Versions before 2.4
  1874. ===================
  1875.  
  1876. See the file history.doc.
  1877.